define('router',[
'vue',
'vueRouter',
'vTouch',
'museUi',
'approvaList',
'searchList',/*Pending*/
'formLeave',
'formOut',
'formPayment',
'formTravel',
'formContract',
'formBuyIn',
'formEntry',
'formCard',
'formChapter',
'formReception',
'formTransfer',
'formHelpOthers',
'formManpower',
'formRecruit',
'formQuit',
'formBusinessTravel',
'fromReceptionByrequire'
],function (
Vue,
VueRouter,
vTouch,
museUi,
approvaList,
searchList,/*Pending*/
formLeave,
formOut,
formPayment,
formTravel,
formContract,
formBuyIn,
formEntry,
formCard,
formChapter,
formReception,
formTransfer,
formHelpOthers,
formManpower,
formRecruit,
formQuit,
formBusinessTravel,
fromReceptionByrequire
) {
    var _app = function() {
        Vue.use(VueRouter);
        Vue.use(vTouch);
        Vue.use(museUi);
         var routes = [
			 {
			      path: '/',
			      component:approvaList.app
			 },
			 {
			      path: '/search-list',
			      component:searchList.app
			 },
			 {
			      path: '/form-leave',
			      component:formLeave.app
			 },
			 {
			      path: '/form-out',
			      component:formOut.app
			 },
			 {
			      path: '/form-payment',
			      component:formPayment.app
			 },
			 {
			      path: '/form-travel',
			      component:formTravel.app
			 },
			 {
			      path: '/form-contract',
			      component:formContract.app
			 },
			 {
			      path: '/form-buyIn',//物品采购
			      component:formBuyIn.app
			 },
			 {
			      path: '/form-quit',
			      component:formQuit.app
			 },
			 {
			      path: '/form-entry',
			      component:formEntry.app
			 },
			 {
			      path: '/form-card',//名片申请
			      component:formCard.app
			 },
			 {
			      path: '/form-chapter',
			      component:formChapter.app
			 },
			 {
			      path: '/form-reception',
			      component:formReception.app
			 },
			 {
			      path: '/form-transfers',//调度审批
			      component:formTransfer.app
			 },
			 {
			      path: '/form-help-others',//跨部门协助
			      component:formHelpOthers.app
			 },
			 {
			      path: '/form-manpower',//人事类
			      component:formManpower.app
			 },
			 {
			      path: '/form-recruit',//招聘
			      component:formRecruit.app
			 },
			 {
			      path: '/from-business-travel',//商旅出差
			      component:formBusinessTravel.app 
			 },
			 {
			      path: '/from-reception-require',//来访接待按需求
			      component:fromReceptionByrequire.app
			 }
		]
        window.Router=new VueRouter({
		  routes:routes
		});
		var app = new Vue({
		  router:Router
		}).$mount('#app');
		
   };
    return {
        routerDemo:_app
    };
});